﻿@using ZBJF.Warranty.Common.Enums.InsuranceOrder
@using ZBJF.Warranty.WebProvider
@model ZBJF.Warranty.Model.ViewModel.Order.InsuranceOrderModel
<table class="keep-all">
    <tr>
        <td>工单来源：</td>
        <td>
            @Html.DropDownListFor(m => m.OrderFromType, ConvertToSelector.Instance.EnumTypeConvertToSelectList(typeof(InsuranceOrderFromType)))
        </td>
        <td>保险产品类型：</td>
        <td>
            <select id="InsuranceCategoryName" name="InsuranceCategoryName">
                <option value="">请选择</option>
                <option value="碎屏险">碎屏险</option>
            </select>
        </td>
        <td>工单号：</td>
        <td>
            @Html.TextBoxFor(m => m.OrderNO, new { @class = "input-small" })
        </td>
        <td>设备识别码：</td>
        <td>@Html.TextBoxFor(m => m.IMEI, new { maxlength = 20, @class = "input-medium" })</td>
    </tr>
    <tr>
        <td>被保险人：</td>
        <td>@Html.TextBoxFor(m => m.UserName, new { maxlength = 15, @class = "input-small" })</td>
        <td>被保险人电话：</td>
        <td>@Html.TextBoxFor(m => m.UserPhone, new { maxlength = 15, @class = "input-small" })</td>
        <td>销售商户：</td>
        <td>@Html.TextBoxFor(m => m.SaleVendorName, new { maxlength = 20, @class = "input-small" })</td>
        <td>证件号码：</td>
        <td>@Html.TextBoxFor(m => m.CertificateNO, new { maxlength = 20, @class = "input-medium" })</td>
    </tr>
    <tr>
        <td>第三方承保公司：</td>
        <td>@Html.TextBoxFor(m => m.InsuranceCompany, new { maxlength = 20, @class = "input-small" })</td>
        <td>承保公司分公司：</td>
        <td>@Html.TextBoxFor(m => m.InsuranceCompanyBranch, new { maxlength = 20, @class = "input-small" })</td>
        <td>第三方保单号：</td>
        <td>@Html.TextBoxFor(m => m.ThirdOrderNO, new { maxlength = 20, @class = "input-small" })</td>
        <td>投保时间： </td>
        <td colspan="1">
            <input id="CreateOrderTimeStart" class="Wdate input-small" type="text" onfocus="var CreateOrderTimeEnd = $dp.$('CreateOrderTimeEnd'); WdatePicker({ onpicked: function () { CreateOrderTimeEnd.focus(); }, maxDate: '#F{$dp.$D(\'CreateOrderTimeEnd\')}' })" /><span>-</span>
            <input id="CreateOrderTimeEnd" class="Wdate input-small" type="text" onfocus="WdatePicker({ minDate: '#F{$dp.$D(\'CreateOrderTimeStart\')}' })" />
            <input id="btnSubmit" class="btn btn-primary  Search-R margin-l-10" type="button" value="查询 " onclick="search();">
        </td>
    </tr>
</table>
<script type="text/javascript">
    function search() {
        /*给查询对象赋值*/
        queryParamList.OrderFromType = $("#OrderFromType").val();
        queryParamList.InsuranceCategoryName = $("#InsuranceCategoryName").val();
        queryParamList.OrderNO = $("#OrderNO").val();
        queryParamList.CreateOrderTimeStart = $("#CreateOrderTimeStart").val();
        queryParamList.CreateOrderTimeEnd = $("#CreateOrderTimeEnd").val();
        queryParamList.UserPhone = $("#UserPhone").val();
        queryParamList.UserName = $("#UserName").val();
        queryParamList.CertificateNO = $("#CertificateNO").val();
        queryParamList.IMEI = $("#IMEI").val();
        queryParamList.ThirdOrderNO = $("#ThirdOrderNO").val();
        queryParamList.SaleVendorName = $("#SaleVendorName").val();
        queryParamList.InsuranceCompany = $("#InsuranceCompany").val();
        queryParamList.InsuranceCompanyBranch = $("#InsuranceCompanyBranch").val();
        $("#insuranceOrderList").dataTable().fnDraw();
    }
</script>

